package com.quickcancellation.crm.service.impl;

import com.quickcancellation.crm.pojo.dto.PageDto;
import com.quickcancellation.crm.pojo.entity.Activity;
import com.quickcancellation.crm.mapper.ActivityMapper;
import com.quickcancellation.crm.service.IActivityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 行动计划主表 服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2023-03-07
 */
@Service
public class ActivityServiceImpl extends ServiceImpl<ActivityMapper, Activity> implements IActivityService {
    @Resource
    private ActivityMapper activityMapper;

    @Override

    public List<Map> getActivityList(PageDto<Map> pageDto) {
        return activityMapper.getActivityList(pageDto);
    }

    @Override
    public Long getActivityListCount(PageDto<Map> pageDto) {
        return activityMapper.getActivityListCount(pageDto);
    }

    @Override
    public List<Map> getGiftActivityList(PageDto<Map> pageDto) {
        return activityMapper.getGiftActivityList(pageDto);
    }

    @Override
    public Long getGiftActivityListCount(PageDto<Map> pageDto) {
        return activityMapper.getGiftActivityListCount(pageDto);
    }

    @Override
    public List<Map> getRebateActivityList(PageDto<Map> pageDto) {
        return activityMapper.getRebateActivityList(pageDto);
    }

    @Override
    public Long getRebateActivityListCount(PageDto<Map> pageDto) {
        return  activityMapper.getRebateActivityListCount(pageDto);
    }
}
